package com.kcwl.carrier.infrastructure.enums;

import lombok.Getter;

/**
 * 审核状态
 */
@Getter
public enum AuditAuthenticationStatusEnum {
    UNAUTHENTICATION(0, "未认证"),
    UNAUDITED(1, "待审核"),
    SUCCESS(2, "审核成功"),
    FAILURE(3, "审核失败"),
    AGAINAUDITED(4, "重新审验"),
    EFFECTIVE(5, "已过期");

    private int     code;
    private String  value;

    AuditAuthenticationStatusEnum(int code, String value) {
        this.code  = code;
        this.value = value;
    }
    public static String getDesc(int code){

        for(AuditAuthenticationStatusEnum aase : values()){
            if(aase.getCode() == code){
                return aase.getValue();
            }
        }
        return null;
    }
}
